package apiday01;

public class LengthDemo {
    public static void main(String[] args) {
        String s = "哈哈，嘻嘻...";
        StringBuilder builder = new StringBuilder(s);
        builder.append("嘿嘿。。。");
        System.out.println(builder);
        builder.replace(0,2,"嘎嘎");
        System.out.println(builder);
        builder.delete(0,2);
        System.out.println(builder);
        builder.insert(0,"琪琪");
        System.out.println(builder);
        builder.reverse();
        System.out.println(builder);
    }
}
